<html xmlns:th="http://www.thymeleaf.org">
<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch"
          data-options="{searchDatagrid:$.CurrentNavtab.find('#datagrid-businessOtherTask-filter')}">
        <div class="bjui-searchBar">
            <label>虚拟机名称：</label>
            <input type="text" name="vmMac" class="form-control" size="15">
            <label>命令</label>
            <select name="cmd" data-toggle="selectpicker" id="select_business_task_cmd"></select>

            <button type="button" class="btn showMoreSearch" data-toggle="moresearch" data-name="custom" title="更多查询条件">
                <i class="fa fa-angle-double-up"></i></button>
            <button type="submit" class="btn-green" data-icon="search">搜索</button>
            <button type="reset" class="btn-orange" data-icon="times" onclick="resetAll();">重置</button>

            <div class="bjui-moreSearch" style="top: 27px; display: none;">
                <label>状态</label>
                <select name="state" data-toggle="selectpicker" id="select_business_task_state"></select>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-businessOtherTask-filter" data-toggle="datagrid" data-options="{
        height: '100%',
        showToolbar: true,
        toolbarItem: 'refresh,|,add,edit,del',
        dataUrl: '/admin/othertask',
        dataType: 'json',
        jsonPrefix: '',
        editMode: {dialog:{width:'800',height:500,title:'编辑信息',mask:true}},
        editUrl: '/admin/othertask/initpage?req_id={id}',
        delUrl:'/admin/othertask/del',
        delPK:'id',
        delConfirm:true,
        showCheckboxcol: true,
        inlineEditMult:false,
        paging: {pageSize:20},
        linenumberAll: true,
        filterThead:false,
        hScrollbar:true
    }">
        <thead>
        <tr>
            <th data-options="{name:'id',align:'center',width:100}">任务ID</th>
            <th data-options="{name:'deviceClient.name',align:'center',width:100}">客户端</th>
            <th data-options="{name:'deviceVirtual.virtualMac',align:'center',width:100}">虚拟机</th>
            <th data-options="{name:'allPhone',align:'center',width:200}">号码</th>
            <th data-options="{name:'msg',align:'center',width:200}">消息</th>
            <th data-options="{name:'businessApple.appleId',align:'center',width:100}">苹果账号</th>
            <th data-options="{name:'businessWuma.productName',align:'center',width:100}">五码</th>
            <th data-options="{name:'cmd',align:'center',width:100}">命令</th>
            <th data-options="{name:'state',align:'center',width:100}">状态</th>
            <th data-options="{name:'updatedTime',align:'center'}">更新时间</th>
        </tr>
        </thead>
    </table>
</div>

<script type="text/javascript">
    select_option('select_business_task_cmd', 'com.imessage.type.BusinessTaskCmd',"","9,99");
    select_option('select_business_task_state', 'com.imessage.type.BusinessTaskState',"","");
</script>